package com.speily.study.provider.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * @Auther: SPL
 * @Date: 2019-07-09 18:15
 * @Description: 账户
 */
@Getter @Setter
public class AccountA  extends Model {

    @TableId(type = IdType.AUTO)
    private Long id;

    private String name;

    private BigDecimal money;


    protected Serializable pkVal() {
        return this.id;
    }
}
